import { Moment } from 'moment';
import { ICategory } from 'app/shared/model//category.model';
import { IDepartment } from 'app/shared/model//department.model';

export interface IContract {
    id?: number;
    serialNo?: string;
    name?: string;
    projectInfo?: string;
    signDate?: Moment;
    validDays?: string;
    startDate?: Moment;
    endDate?: Moment;
    totalMoney?: number;
    createdBy?: string;
    createdDate?: Moment;
    lastModifiedBy?: string;
    lastModifiedDate?: Moment;
    comment?: string;
    category?: ICategory;
    department?: IDepartment;
}

export class Contract implements IContract {
    constructor(
        public id?: number,
        public serialNo?: string,
        public name?: string,
        public projectInfo?: string,
        public signDate?: Moment,
        public validDays?: string,
        public startDate?: Moment,
        public endDate?: Moment,
        public totalMoney?: number,
        public createdBy?: string,
        public createdDate?: Moment,
        public lastModifiedBy?: string,
        public lastModifiedDate?: Moment,
        public comment?: string,
        public category?: ICategory,
        public department?: IDepartment
    ) {}
}
